import request from '@/utils/request'

// 查询提现申请列表
export function listApplication(query) {
  return request({
    url: '/system/application/list',
    method: 'get',
    params: query
  })
}

// 查询提现申请详细
export function getApplication(withdrawalId) {
  return request({
    url: '/system/application/' + withdrawalId,
    method: 'get'
  })
}

// 新增提现申请
export function addApplication(data) {
  return request({
    url: '/system/application',
    method: 'post',
    data: data
  })
}

// 修改提现申请
export function updateApplication(data) {
  return request({
    url: '/system/application',
    method: 'put',
    data: data
  })
}

// 删除提现申请
export function delApplication(withdrawalId) {
  return request({
    url: '/system/application/' + withdrawalId,
    method: 'delete'
  })
}
